import './index.scss';
import tpl from './index.tpl';

export default ()=>{
  return {
    name: 'numSelector',
    tpl(id, num, index, limitation){
      return tpl().replace(/{{(.*?)}}/g, (node, key)=> {
        return {
          id, num, index, limitation
        }[key];
      });
    }
  }
}